package net.aiion.weave.impl.xml;

import net.aiion.weave.spi.resources.Resource;
import net.aiion.weave.spi.xml.XmlGenerator;
import net.aiion.weave.spi.xml.XmlSource;
import net.aiion.weave.spi.xml.XmlSourceFactory;

public class XmlSourceFactoryImpl extends XmlSourceFactory
{
    public XmlSourceFactoryImpl() {
    }

    // TODO implement postponeSourcing and cancelSourcing for XML-API
    @Override
    public XmlSource createReader(final Resource aResource) {
        return new XmlReaderImpl(aResource);
    }

    @Override
    public XmlGenerator createGenerator() {
        return new XmlGeneratorImpl();
    }
}
